package org.jeecg.modules.minqing.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.minqing.entity.DynamicNews;
import org.jeecg.modules.minqing.mapper.DynamicNewsMapper;
import org.jeecg.modules.minqing.service.IDynamicNewsService;
import org.springframework.stereotype.Service;

/**
 * @Description: 招商工作动态
 * @Author: jeecg-boot
 * @Date: 2020-01-08
 * @Version: V1.0
 */
@Service
public class DynamicNewsServiceImpl extends ServiceImpl<DynamicNewsMapper, DynamicNews> implements IDynamicNewsService {

    @Override
    public Page<DynamicNews> getPage(Page<DynamicNews> page, DynamicNews dynamicNews) {
        page.setRecords(baseMapper.getList(page, dynamicNews));
        return page;
    }
}
